<!-- php:$title = "修改个人资料_会员中心" -->
<!-- include tpl=header title=$title -->
<script type="text/javascript">
$(document).ready(function(){
	$("#userinfo_submit").submit(function(){
		$(this).ajaxSubmit({
			type:'post',
			url: api_url('usercp','info'),
			dataType:'json',
			success: function(rs){
				if(rs.status){
					$.dialog.alert("您的信息更新成功",function(){
						$.phpok.reload();
					},'succeed');
				}else{
					$.dialog.alert(rs.info);
					return false;
				}
			}
		});
		return false;
	});
});
</script>
<section class="container"><div class="mt-3"><!-- include tpl=block/breadcrumb --></div></section>
<section class="container">
	<div class="row">
		<div class="col-sm-3">
			<!-- include tpl=block/usercp_nav -->
		</div>
		<div class="col-sm-9">
			<div class="card">
				<div class="card-header">修改个人资料</div>
				<div class="card-body">
					<form method="post" id="userinfo_submit">
						<input type="hidden" name="avatar" id="avatar" value="{$rs.avatar}" />
						<!-- loop from=$extlist key=$key value=$value -->
						<div class="row form-group">
							<label class="col-sm-2 am-form-label">{$value.title}</label>
							<div class="col-sm-10 cp-{$value.identifier}">{$value.html}</div>
						</div>
						<!-- /loop -->
						<div class="row form-group">
							<label class="col-sm-2 am-form-label"></label>
							<div class="col-sm-10"><input type="submit" value="提交修改" class="btn btn-primary" /></div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
</section>
<!-- include tpl=footer -->